import routes from './routes'

export default {
  treeShaking: true,
  routes,
  "theme": {
    "primary-color": "#1DA57A",
  },
  exportStatic: {},
  //该配置优先级还是mock文件夹下mock数据高
  // start:no-mock 运行时走代理
  "proxy": {
    "/api": {
      "target": "http://www.supcon.com/",
      "changeOrigin": true,
      "pathRewrite": { "^/api" : "" }
    }
  },
  plugins: [
    [
      'umi-plugin-react',
      {
        antd: true,
        dva: true,
        dynamicImport: { webpackChunkName: true },
        title: 'MES智能集成平台',
        dll: false,
        routes: {
          exclude: [
            /models\//,
            /services\//,
            /model\.(t|j)sx?$/,
            /service\.(t|j)sx?$/,
            /components\//,
          ],
        },
      },
    ],
  ],
};
